<!DOCTYPE html>
<html lang="ch" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <link rel="stylesheet" th:href="@{/static/css/login.css}">
  <style>
    .span-error {
      color: red;
      font-size:16px ;
    }

  </style>
</head>
<body>
<div class="login_container">
  <h1>登录</h1><br><hr>
  <form th:action="@{/login}" method="post">
    <label for="username">用户名</label><br>
    <input type="text"  th:value="${username}" id="username"  placeholder="请输入用户名"><br>
    <label for="password">密码</label><br>
    <input type="password" th:value="${password}" id="password"  placeholder="请输入密码"><br>
    <span class="span-error" th:text="${error}"></span><br>

    <input type="submit" value="登录">
  </form>
</div>


</body>
</html>